package com.ls.fw.search.lucene.bean;


public enum ValueType {
    /** 32-bit integer numeric type */
    INT(32), 
    /** 64-bit long numeric type */
    LONG(64), 
    /** 32-bit float numeric type */
    FLOAT(33), 
    /** 64-bit double numeric type */
    DOUBLE(65),
    STRING(128),
    NONE(0);
    
    private int bit = 0;
    ValueType(int bit){
    	this.setBit(bit);
    }
	public int getBit() {
		return bit;
	}
	public void setBit(int bit) {
		this.bit = bit;
	}
	
	public static ValueType getValueType(int bit){
		for (ValueType s : ValueType.values()){
            if(s.bit == bit){
            	return s;
            }
    	}  
		return null;
	}
  }